<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>打开控制台</h1>
    <script>
      const fn1 = (num1, num2, ...nums) => {
        console.log(num1 + num2);
        console.log(nums);
      };

      fn1(1, 2, 3, "小红", 5);
    </script>
  </body>
</html>
